package scsc.web.system.data;

import java.io.Serializable;
import scsc.pub.tools.StringUtil;

public class DynamicMenuData
    implements Serializable {
  public DynamicMenuData() {
    init();
  }
  public DynamicMenuData(String menuCode,String menuName,String menuFlag,String transCode,String transName,String url) {
    this.menuCode=menuCode;
    this.menuName=menuName;
    this.menuFlag=menuFlag;
    this.transCode=transCode;
    this.transName=transName;
    this.url=url;
  }

  private String menuCode;
  public static final String menuCodeDB = "MENUCODE";
  private String menuName;
  public static final String menuNameDB = "MENUNAME";
  private String menuFlag;
  public static final String menuFlagDB = "MENUFLAG";
  private String transCode;
  public static final String transCodeDB = "TRANSCODE";
  private String transName;
  public static final String transNameDB = "TRANSNAME";
  private String url;
  public static final String urlDB = "URL";

  public String getMenuCode() {
    return menuCode;
  }

  public void setMenuCode(String menuCode) {
    this.menuCode = StringUtil.trim(menuCode);
  }

  public String getMenuName() {
    return menuName;
  }

  public void setMenuName(String menuName) {
    this.menuName = StringUtil.trim(menuName);
  }

  public String getMenuFlag() {
    return menuFlag;
  }

  public void setMenuFlag(String menuFlag) {
    this.menuFlag = StringUtil.trim(menuFlag);
  }

  public String getTransCode() {
    return transCode;
  }

  public void setTransCode(String transCode) {
    this.transCode = StringUtil.trim(transCode);
  }

  public String getTransName() {
    return transName;
  }

  public void setTransName(String transName) {
    this.transName = StringUtil.trim(transName);
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = StringUtil.trim(url);
  }

  public void reset() {
    init();
  }

  public void init() {
    setMenuCode("");
    setMenuName("");
    setMenuFlag("");
    setTransCode("");
    setTransName("");
    setUrl("");
  }
}
